package com.tt.fashionWebSite.service.imp;

import com.tt.fashionWebSite.dao.UserDao;
import com.tt.fashionWebSite.domain.User;
import com.tt.fashionWebSite.dto.IndexTestDto;
import com.tt.fashionWebSite.service.GenericService;
import com.tt.fashionWebSite.service.IndexTestService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Qualifier;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Propagation;
import org.springframework.transaction.annotation.Transactional;

import java.util.ArrayList;
import java.util.List;

/**
 * Created by 10520_000 on 10/23/14.
 */
@Service("indexTestService")
public class IndexTestServiceImp extends GenericService implements IndexTestService {
    @Autowired
    @Qualifier("userDao")
    private UserDao userDao;


    @Override
    @Transactional(propagation = Propagation.REQUIRED)
    public List<IndexTestDto> getUser(IndexTestDto indexTestDto) {
        List<IndexTestDto> result = new ArrayList<IndexTestDto>();
        List<User> userList = userDao.getUser();
        return result;
    }
}
